package com.itheima.Controller;

import com.itheima.manager.ShowMapManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class ShowMapController {
    @Autowired
    private ShowMapManager showMapManager;

    @GetMapping("findAllUserOnMap")
    public Map findAllUserOnMap(
             String id
    ){
        System.out.println(id);
        System.out.println("连接成功");
//        return showMapManager.findAllUserOnMap();
        //userId = 13l;
        //return showMapManager.findAllUserOnMap(12);
        return showMapManager.findPeopleOnMap(Long.valueOf (id));
    }

}
